import { Form, Input } from 'antd';

const DepartmentForm = ({ form, onFinish }) => {
  return (
    <Form
      form={form}
      layout="vertical"
      onFinish={onFinish}
    >
      <Form.Item name="id" hidden>
        <Input />
      </Form.Item>
      
      <Form.Item name="pid" hidden>
        <Input />
      </Form.Item>
      
      <Form.Item
        name="departmentName"
        label="部门名称"
        rules={[{ required: true, message: '请输入部门名称' }]}
      >
        <Input placeholder="请输入部门名称" />
      </Form.Item>
      
      <Form.Item 
        name="remark" 
        label="备注"
      >
        <Input.TextArea placeholder="请输入备注" rows={4} />
      </Form.Item>
    </Form>
  );
};

export default DepartmentForm;